using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;

using Liberty.Domain.ServiceMemberManagement;

namespace Liberty.Persistence.GrantManagement
{
    [Serializable]
    public class GrantSearchCriteria : AbstractSearchCriteria
    {
        #region Constants

        private const string
            SP_ALL_GRANTS = "GrantManagement.AllGrants",
            SP_GRANTS_FOR_VOLUNTEER = "GrantManagement.GrantsFor",
            SP_GRANTS_FOR_SERVICE_MEMBER = "GrantManagement.GrantsForServiceMember";

        private const string
            PARAM_OID = "@VolunteerID",
            PARAM_SERVICE_MEMBER_ID = "@ServiceMemberID";

        #endregion

        #region Event Handlers
        #endregion

        #region Methods
        #endregion

        #region Properties
        #endregion

        #region Private Methods
        #endregion

        #region Private Properties
        #endregion

        #region Construction and Finalization

        public GrantSearchCriteria()
            : base( SP_ALL_GRANTS )
        {
        }

        public GrantSearchCriteria( long OID )
            : base( SP_GRANTS_FOR_VOLUNTEER )
        {
            this.AddParameter( PARAM_OID, OID );
        }

        public GrantSearchCriteria( ServiceMember serviceMember )
            : base( SP_GRANTS_FOR_SERVICE_MEMBER )
        {
            this.AddParameter( PARAM_SERVICE_MEMBER_ID, serviceMember.Oid );
        }
        #endregion

        #region Data Elements
        #endregion
    }
}
